// 字典类型管理
import axios from "@/request/axios";

// 新增
export function dictTypeAdd(params: any) {
  return axios({
    url: "/system/dictType/add",
    method:"POST",
    data: params,
  });
}

// 删除
export function dictTypeDel(ids: any) {
  return axios({
    url: "/system/dictType/del",
    method:"POST",
    data: ids,
  });
}

// 修改
export function dictTypeEdit(params: any) {
  return axios({
    url: "/system/dictType/edit",
    method:"POST",
    data: params,
  });
}

// 获取详情
export function getDictTypeById(id: any) {
  return axios({
    url: "/system/dictType/detail",
    method:"POST",
    data: { id }
  });
}

// 查询（分页）
export function dictTypeQuery(params: any) {
  return axios({
    url: "/system/dictType/query",
    method:"POST",
    data: params,
  });
}